#!/bin/bash
# Uninstall pi-battery-widget

# kill running pi-battery-widget command
pkill pi-battery-

#remove files from ~/bin
rm ~/bin/battery_icon.png
rm ~/bin/pi-battery-widget
rm ~/bin/pi-battery-reader.py

# remove line from lxsession autostart
cd ~/.config/lxsession/Lubuntu/
grep -v "pi-battery-widget" ./autostart > temp
mv temp autostart
